package com.example.lx6_1

import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.base.mvvm.BaseViewActivity
import com.example.lx6_1.databinding.ActivityVractivityBinding
import com.google.vr.sdk.widgets.pano.VrPanoramaView

@Route(path = "/app/VRActivity")
class VRActivity : BaseViewActivity<ActivityVractivityBinding>() {
    override fun initView() {
//        val options = VrPanoramaView.Options()
//        options.inputType = VrPanoramaView.Options.TYPE_MONO
//        binding.vr.loadImageFromBitmap(Bitmap.createBitmap(BitmapFactory.decodeResource(resources,R.drawable.quan2)),options)
        val options = VrPanoramaView.Options()
        options.inputType = VrPanoramaView.Options.TYPE_MONO
        binding.vr.loadImageFromBitmap(Bitmap.createBitmap(BitmapFactory.decodeResource(resources,R.drawable.quan2)),options)
    }

    override fun initData() {

    }

}